package com.springboot.biz.impl;

import com.springboot.biz.NoteBiz;
import com.springboot.dao.NoteDao;
import com.springboot.entity.Note;
import com.springboot.util.AppUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class NoteBizImpl implements NoteBiz {

	@Resource
	private NoteDao noteDao;
	private Map<String, Object> map = null;

	public void insertNote(Note note) {
		noteDao.insertNote(note);
	}

	public List<Note> findListNote(int id) {
		map = AppUtils.getMap("id", id);
		return noteDao.findListNote(map);
	}

}
